<template>
  <ul>
    <li v-for="item in list" :key="item.id">
      {{ item.name }} -- {{ item.age }}
    </li>
  </ul>
</template>

<script lang="ts">
  /**
   * @Author Rin_pu
   * @Date 2025/2/17 16:26
   * @Description MyTest4
   * @todo
   */
  export default {
    name: "MyTest4"
  }
</script>

<script setup lang="ts">
  import {type Person} from '@/types'
  withDefaults(defineProps<{list ?: Person}>(), {
    list: () => [{id: 'RR', name: 'RRRinpu',age: 18}]
  });
</script>

<style scoped>

</style>